package com.red.wood.module.eval.service.impl;

import java.util.List;
import java.util.Map;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.red.wood.module.eval.dao.DictionaryDao;
import com.red.wood.module.eval.service.DictionaryService;

@Service
@Transactional
public class DictionaryServiceImpl implements DictionaryService{

	@Autowired
	private DictionaryDao dictionaryDao;
	
	@Override
	public List<Map<String, Object>> getByType(String type) {
		return dictionaryDao.getByType(type);
	}

	@Override
	public Map<String, Object> getByTypeAndKey(String type, String key) {
		return dictionaryDao.getByTypeAndKey(type, key);
	}

	@Override
	public String getValueByTypeAndKey(String type, String key) {
		return dictionaryDao.getValueByTypeAndKey(type, key);
	}

}
